package com.webbei.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Messages {
	private int messageId;
	private String fromName;
	private String toName;
	private String messageContent;
	private Date messageTime;
	private String messagePic;
	private String CDRfilePath;
	private String otherFile;
	private String fileName;
	private String fromuserface;
	private String messageTime_bak;
	public String getMessageTime_bak() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.messageTime);
	}
	public String getCDRfilePath() {
		return CDRfilePath;
	}
	public void setCDRfilePath(String cDRfilePath) {
		CDRfilePath = cDRfilePath;
	}
	public String getMessagePic() {
		return messagePic;
	}
	public void setMessagePic(String messagePic) {
		this.messagePic = messagePic;
	}
	public int getMessageId() {
		return messageId;
	}
	public void setMessageId(int messageId) {
		this.messageId = messageId;
	}
	public String getFromName() {
		return fromName;
	}
	public void setFromName(String fromName) {
		this.fromName = fromName;
	}
	public String getToName() {
		return toName;
	}
	public void setToName(String toName) {
		this.toName = toName;
	}
	public String getMessageContent() {
		return messageContent;
	}
	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}
	public Date getMessageTime() {
		return messageTime;
	}
	public void setMessageTime(Date messageTime) {
		this.messageTime = messageTime;
	}
	
	public String getOtherFile() {
		return otherFile;
	}
	public void setOtherFile(String otherFile) {
		this.otherFile = otherFile;
	}
	public String getFromuserface() {
		return fromuserface;
	}
	public void setFromuserface(String fromuserface) {
		this.fromuserface = fromuserface;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	@Override
	public String toString() {
		return "Messages [messageId=" + messageId + ", fromName=" + fromName
				+ ", toName=" + toName + ", messageContent=" + messageContent
				+ ", messageTime=" + messageTime + ", messagePic=" + messagePic
				+ ", CDRfilePath=" + CDRfilePath + ", otherFile=" + otherFile
				+ ", fileName=" + fileName + ", fromuserface=" + fromuserface
				+ "]";
	}
}
